package com.huike.clues.domain.vo;

import com.huike.common.entity.MPTbActivity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * @Description TODO
 * @Author hxd
 * @Date 2023-08-29 14:37
 */
@Data
@ApiModel("获取分页查询统计对象")
@AllArgsConstructor
@Builder
public class MPTableDataInfoActivityListVo {

    @ApiModelProperty("活动统计对象")
    TableData params;

    /** 总记录数 */
    @ApiModelProperty("总记录数")
    private long total;

    /** 列表数据 */
    @ApiModelProperty("当前页数据列表")
    private List rows;

    /** 消息状态码 */
    @ApiModelProperty("消息状态码")
    private int code;

    /** 消息内容 */
    @ApiModelProperty("消息内容")
    private String msg;


    /**
     * 表格数据对象
     */
    public MPTableDataInfoActivityListVo()
    {
    }

    /**
     * 分页
     * @param list 列表数据
     * @param total 总记录数
     */
    public MPTableDataInfoActivityListVo(List<MPTbActivity> list, int total)
    {
        this.rows = list;
        this.total = total;
    }
    public long getTotal()
    {
        return total;
    }

    public void setTotal(long total)
    {
        this.total = total;
    }

    public List<MPTbActivity>  getRows()
    {
        return rows;
    }

    public void setRows(List<MPTbActivity> rows)
    {
        this.rows = rows;
    }

    public int getCode()
    {
        return code;
    }

    public void setCode(int code)
    {
        this.code = code;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }
}
